package core.domain.messages;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class PingPongMessage extends AbstractMessage {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4124202323118797013L;

	public enum PayLoad{
		PING, PONG;
	}

	public PingPongMessage() {
		super(MessageType.PING);
	}
	
	
	//default is ping
	private PayLoad payload = PayLoad.PING;
	
	public PayLoad getPayload() {
		return payload;
	}
	
	public void setPayload(PayLoad payload) {
		this.payload = payload;
	}

	@Override
	public String toString() {
		return "PingPongMessage [payload=" + payload + "]";
	}
	
	


}
